﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Web.Configuration;

namespace SunRiseSoft.Library.Configuration
{
    public class ConfigurationManager
    {
        public static ConnectionStringSettings Connection
        {
            get
            {
                return WebConfigurationManager.ConnectionStrings[WebConfigurationManager.OpenMachineConfiguration().ConnectionStrings.ConnectionStrings.Count];
            }
        }

        public static ConnectionStringSettingsCollection Connections
        {
            get
            {
                return WebConfigurationManager.ConnectionStrings;
            }
        }

    }
}
